import axios from "axios";

//登录
export function login(params) {
  return axios.post("/user/login", params);
}
//注册
export function reg(params) {
  return axios.post("/user/reg", params);
}
//短信验证;
export function sendSms(params) {
  return axios.post("/user/sendSms", params);
}
//忘记密码;
export function forget(params) {
  return axios.post("/user/forget", params);
}
//修改密码
export function updatePwd(params) {
  return axios.post("/user/updatePwd", params);
}
//注销账号;
export function delete_user(params) {
  return axios.post("/user/delete_user", params);
}
export function getUserInfo(params) {
  return axios.post("/user/getuserInfo", params);
}
export function editUserInfo(params) {
  return axios.post("/user/editUserInfo", params);
}
